package com.xjrsoft.common.flowableUtils;

import org.flowable.bpmn.model.GraphicInfo;
import org.flowable.image.impl.DefaultProcessDiagramCanvas;

public class MyProcessDiagramCanvas extends DefaultProcessDiagramCanvas {
    public MyProcessDiagramCanvas(int width, int height, int minX, int minY, String imageType,
                                       String activityFontName, String labelFontName, String annotationFontName, ClassLoader customClassLoader) {
        super(width, height, minX, minY, imageType,
                 activityFontName,  labelFontName,  annotationFontName,  customClassLoader);
    }

    /**
     * Creates an empty canvas with given width and height.
     *
     * Allows to specify minimal boundaries on the left and upper side of the canvas. This is useful for diagrams that have white space there (eg Signavio). Everything beneath these minimum values
     * will be cropped.
     *
     * @param minX
     *            Hint that will be used when generating the image. Parts that fall below minX on the horizontal scale will be cropped.
     * @param minY
     *            Hint that will be used when generating the image. Parts that fall below minX on the horizontal scale will be cropped.
     */
    public MyProcessDiagramCanvas(int width, int height, int minX, int minY, String imageType) {
        super(width, height, minX, minY, imageType);
    }

    @Override
    public void drawLabel(String text, GraphicInfo graphicInfo) {
        super.drawLabel(text, graphicInfo);
    }
}
